package com.estun.backroundManagementService.modules.position.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.estun.backroundManagementService.modules.position.dto.PositionOptionTreeResult;
import com.estun.backroundManagementService.modules.position.model.Position;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 工位表 服务类
 * </p>
 *
 * @author machine
 * @since 2023-02-02
 */
public interface PositionService extends IService<Position> {


    @Transactional
    boolean delete(Integer id);

    List<PositionOptionTreeResult> listTree();

    Position getByStationId(String stationId);
}
